package com.tubang.logistics.mapper;

import com.tubang.logistics.entity.LogisticsSett;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.tubang.logistics.vo.finance.FinanceSimpleVO;
import com.tubang.logistics.vo.finance.FinanceTableVO;
import com.tubang.logistics.vo.finance.FinanceVO;
import com.tubang.logistics.vo.finance.SettleListVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 结算单表 Mapper 接口
 * </p>
 *
 * @author youtanzhi
 * @since 2018-03-15
 */
public interface LogisticsSettMapper extends BaseMapper<LogisticsSett> {

	List<FinanceVO> listSettle(@Param("startTime") Date startDate, @Param("endTime") Date endDate, @Param("userId") String userId, @Param("get") boolean get, @Param("receive") boolean receive);

	FinanceSimpleVO countSettle(@Param("startTime") Date startDate, @Param("endTime") Date endDate, @Param("userId") String userId, @Param("get") boolean get, @Param("receive") boolean receive);

	List<FinanceTableVO> listSettleTable(@Param("startTime") Date startDate, @Param("endTime") Date endDate, @Param("userId") String userId, @Param("get") boolean get, @Param("receive") boolean receive, @Param("content") String content);

	FinanceSimpleVO getSettleTotal(@Param("startTime") Date startDate, @Param("endTime") Date endDate, @Param("userId") String userId, @Param("get") boolean get, @Param("receive") boolean receive, @Param("content") String content);

	List<SettleListVO> listSettleForCheck(@Param("startTime") Date startDate, @Param("endTime") Date endDate, @Param("userId") String userId, @Param("content") String content, @Param("status") Integer status, @Param("carrier") boolean carrier);
}